package com.aruba.rabbitmq;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.io.IOException;

//@Component
//public class DeadListener {
//
//    @RabbitListener(queues = DeadLetterConfig.NORMAL_QUEUE_NAME)
//    public void normalListener(Message msg, Channel channel) throws IOException {
//        System.out.println("接收到正常队列消息：" + new String(msg.getBody()));
////        channel.basicReject(msg.getMessageProperties().getDeliveryTag(), false);
////        channel.basicNack(msg.getMessageProperties().getDeliveryTag(), false, false);
//    }
//
//}
